<script setup>
import {ref} from "vue";

let info = ref("Hello, Vue!")

let emits = defineEmits(["sendInfo"]);

function sendEvent() {
  emits("sendInfo", info)
}

</script>

<template>
<button v-on:click="sendEvent">发送</button>
</template>

<style scoped>

</style>